package za.ac.cput.garethc.designpatterns.behavioural.momento;

/**
 *
 * @author Gareth
 */
public class DietInfoCareTaker
{
    private Object objMemento;

    public void saveState(DietInfo dietInfo)
    {
        objMemento = dietInfo.save();
    }

    public void restoreState(DietInfo dietInfo)
    {
        dietInfo.restore(objMemento);
    }
}
